﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Chinaer.Win
{
    public partial class AddAddress : Form
    {
        public AddAddress()
        {
            InitializeComponent();
        }

        private void Bind()
        {
           
        }
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                DTO.AddressDTO addressDTO = new DTO.AddressDTO();
                addressDTO.CustomerID = this.txtCustomerID.Text;
                addressDTO.Address = "单县";
                ChinaerService.Instance.AddAddress(addressDTO);
                Bind();
                MessageBox.Show("添加成功");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
